/*
 * @CreatDate: 2021-10-15 19:18:57
 * @Describe: 权限按钮组件
 */

import React from 'react';
import { Button } from 'antd';

export default function AuthBtn({ auth = true, children, ...rest }) {
  return auth ? <Button {...rest}>{children}</Button> : null;
}
